package com.itheima.capusulation;

public class Test {
    public static void main(String[] args) {
        Students s1=new Students();
//        s1.age=20;
        s1.setAge(20);

        //这样不安全，因为score是私有的，只能通过setScore()方法来设置
        //s1.score=80;
        System.out.println(s1.getAge());
    }
}
